-- treasure_heritage
-- created by wangy
-- 遗产最高可抽取的宝物阶位

return {
    apply = function(prop, baseValue)
        if prop[3] >= 5 then
            return ({ 0, 40, 30, 20, 10, 5, 0 });
        end

        if prop[3] >= 4 then
            return ({ 0, 40, 30, 20, 10, 0, 0 });
        end

        if prop[3] >= 3 then
            return ({ 0, 40, 30, 20, 0, 0, 0 });
        end

        if prop[3] >= 2 then
            return ({ 0, 40, 30, 0, 0, 0, 0 });
        end

        return ({ 0, 40, 0, 0, 0, 0, 0 });
    end,

    record = function(target, prop, path)
        return false;
    end
};